<?php
namespace Admin\Controller;

use Common\Controller\AdminbaseController;

class ChargeController extends AdminbaseController{
	
	// 微信用户列表
	public function index(){
		$Charge = M("charge_log");

		$list   = $Charge->alias('c')
		                 ->join('__USER__ u on c.user_id = u.id','left')
		                 ->field('u.mobile,c.user_id,c.amount,c.start_time,c.end_time,c.duration,c.club_name,c.order_number,c.lock_id,c.amount,c.cue_number,c.out_trade_no,c.lock_number,c.is_pay')
		                 ->order('c.start_time desc')
		                 ->select();
	    $this->assign('list',$list);
        $this->display();
	}
}